Spread Windows Forms 17
FarPoint.Win Assembly / FarPoint.Win.DPISupporting Namespace / DPIUtils Class / GetBitmap Method / GetBitmap(Assembly,String,Single,Single[],IBitmapProcessing,IBitmapProcessing) Method
The assembly that contain the specified resource. If the assembly is null, that mean the specified resource is file.
The original path (1x version) of specifed Bitmap resource.
The scale factor of the result Bitmap.
The scale factors of the specified scale versions of the Bitmap resource that would be used to create the result Bitmap.
The Bitmap processing that would manipulate the Bitmap before scaling.
The Bitmap processing that would manipulate the Bitmap after scaling.


In This Topic
    GetBitmap(Assembly,String,Single,Single[],IBitmapProcessing,IBitmapProcessing) Method
    In This Topic
    Get the specified scaled Bitmap of specified Bitmap resource. The result Bitmap is scaled from nearest existing higher resolution version in the specified scale versions of the Bitmap resource. If there isn't any existing higher resolution version, the result Bitmap is scaled from nearest existing lower resolution version in the specified scale versions of the Bitmap resource.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetBitmap( _
       ByVal assembly As Assembly, _
       ByVal resourcePath As String, _
       ByVal requestScaleFactor As Single, _
       ByVal scaleFactors() As Single, _
       ByVal prescaleProcessing As IBitmapProcessing, _
       ByVal postscaleProcessing As IBitmapProcessing _
    ) As Bitmap
    'Usage
     
    
    Dim assembly As Assembly
    Dim resourcePath As String
    Dim requestScaleFactor As Single
    Dim scaleFactors() As Single
    Dim prescaleProcessing As IBitmapProcessing
    Dim postscaleProcessing As IBitmapProcessing
    Dim value As Bitmap
     
    value = DPIUtils.GetBitmap(assembly, resourcePath, requestScaleFactor, scaleFactors, prescaleProcessing, postscaleProcessing)

    Parameters

    assembly
    The assembly that contain the specified resource. If the assembly is null, that mean the specified resource is file.
    resourcePath
    The original path (1x version) of specifed Bitmap resource.
    requestScaleFactor
    The scale factor of the result Bitmap.
    scaleFactors
    The scale factors of the specified scale versions of the Bitmap resource that would be used to create the result Bitmap.
    prescaleProcessing
    The Bitmap processing that would manipulate the Bitmap before scaling.
    postscaleProcessing
    The Bitmap processing that would manipulate the Bitmap after scaling.

    Return Value

    The scaled Bitmap.
    See Also